<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head>
<%@ include file="../../include/easyui.jsp" %>
<%@ include file="../../include/pGrid.jsp" %>
<title>施工信息管理</title>
<script>
	$(function(){
		var gridParam = {
			columns : [[ 
			     {field: 'pNo', title: '路段编号', width: 120} 
		    	,{field: 'subcontract', title: '分包合同', width: 120}
		    	,{field: 'workUnit', title: '施工单位', width: 120}
		    	,{field: 'workManager', title: '施工负责人', width: 80}
		    	,{field: 'workManagerPhone', title: '施工负责人电话', width: 120}
		    	,{field: 'startDate', title: '开工时间', width: 120}
		    	,{field: 'endDate', title: '完工时间', width: 120}
		    	,{field: 'checkDate', title: '验收时间', width: 120}
		    	,{field: 'supervisorUnit', title: '监理单位', width: 80}
		    	,{field: 'supervisorName', title: '监理人', width: 100}
		    	,{field: 'supervisorPhone', title: '监理电话', width: 100}
		    	,{field: 'workDays', title: '工期（天数）', width: 120}
		    	,{field: 'workDesc', title: '工作量描述', width: 120}
		    	,{field: 'opticCableCores', title: '实际芯数', width: 120}
		    	,{field: 'opticCableLength', title: '实际米数', width: 120}
		    	,{field: 'dataManager', title: '资料员', width: 120}
		    	,{field: 'together', title: '是否合放', width: 120}
		    	,{field: 'ztLen', title: '本地网长度', width: 120}
		    	,{field: 'dlLen', title: '电力长度', width: 120}
		    	,{field: 'orgNoName', title: '所属机构', width: 120 }
		    	,{field: 'createTime', title: '创建时间', width: 130}
		    	,{field: 'createrName', title: '创建人', width: 120}
			]]
		};
		p.dataGrid = $(p.dataGrid).datagrid( $.extend({}, p.dataGridParam,gridParam));
		/*事件响应*/
		$("#toolbar .easyui-linkbutton").on("click", function() {
			var motion_code = $(this).attr("motion_code");p.btnOneClick($(this));
			switch (motion_code) {
				case "01":
					p.gridAdd({title : "施工信息管理新增" ,width : 850, height : 430  ,autoMax:true});
					break;
				case "02":
					p.gridModify({title : "施工信息管理编辑" ,width : 850, height : 430  ,autoMax:true});
					break;
				case "03":
					p.gridDelete({ msg:"您确认删除当前选中收入记录？" });
					break;
				break;
				case "04":
					p.gridView({title : "施工信息管理查看", width : 850, height : 430 ,autoMax:true});		
					break;
				case "05":
					p.gridQuery();
					break;
				case "07":
					p.down({filename:'施工信息管理'});
					break;
				case "19":
					p.gridAdd({href:'/console/information/import', title : "项目施工管理数据导入", width : 550, height : 330 });
					break;
				default:
					break;
				}
		});
	});
</script>
</head>
<body class="easyui-layout">
	<!-- 但行高度33px，多行时 33乘以行数  -->
	<div data-options="region:'north',split:false,border:false" style="height:33px;">
		<div class="easyui-panel" data-options="fit:true,border:false">
			<!-- 查询条件表单，根据配置进行替换  -->
			<form id="queryForm" >
			 <input type="hidden" name="className" value="com.fs.jzzn.pojo.Project" />
			 <div style="margin-top:5px;margin-left:10px;float:left;">
			  <input class="easyui-textbox" name="pNo" style="width:240px;" data-options="label:'项目编号:',required:false" />
			<input type="hidden" name="pNo_searchType" value="like" />
			 </div>
			 <div style="margin-top:5px;margin-left:10px;float:left;">
			  <input class="easyui-textbox" name="workUnit" style="width:240px;" data-options="label:'施工单位:',required:false" />
			<input type="hidden" name="workUnit_searchType" value="like" />
			 </div>
			 <div style="margin-top:5px;margin-left:10px;float:left;">
			  <input class="easyui-textbox" name="workManager" style="width:240px;" data-options="label:'施工负责人:',labelWidth:75,required:false" />
			<input type="hidden" name="workManager_searchType" value="like" />
			 </div>
			</form>
		</div>
	</div>  

	<!-- 工具栏按钮 -->
	<div id="toolbar" class="easyui-panel" style="padding:3px;"></div>
	
	<!-- 表格 -->
	<div region="center" border="false">
		<table id="dataGrid"></table>
	</div>
</body>
</html>